attribute name selection

92

attribute name selection -

document.evaluate(
  '//*[starts-with(name(), "custom-")]',
  document, 
  null, 
  XPathResult.UNORDERED_NODE_ITERATOR_TYPE, 
  null
)

attribute name selection -

document.evaluate(
  '//*[@*[starts-with(name(), "data-custom-")]]',
  document, 
  null, 
  XPathResult.UNORDERED_NODE_ITERATOR_TYPE, 
  null
)

Comments

Submit
0 Comments